package org.example.exception;

public enum ErrorEnum {
    SUCCESS(10000, "请求成功"),
    ACCOUNT_NOT_EXISTS(10001, "账户不存在"),
    PASSWORD_ERROR(10002, "密码错误"),
    SERVER_ERROR(10005, "服务器异常"),
    ACCOUNT_IS_DISABLED(10006, "账号被禁用"),
    LOGIN_EXPIRATION(10007, "登录已过期"),
    MATERIAL_EXISTS(10008, "物资已存在"),
    BOOK_EXISTS(10009, "书籍已存在"),
    EXCEL_IMPORT_ERROR(10013, "Excel文件导入失败");
    ErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    private Integer code;
    private String message;
    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
